package com.qx.grainmall.product.feign;

import com.qx.common.vo.SkuEsModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.io.IOException;
import java.util.List;

@FeignClient("grainmall-elasticsearch")
public interface EsFeignService {
    @PostMapping("up")
    public Boolean up(@RequestBody List<SkuEsModel> list) throws IOException;
}
